{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo web_url('news/noticeset/smsparams');}">短信参数编辑</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal form form-validate" id="setting-form" id="form">
			<div class="panel panel-default">
				<div class="panel-heading">参数设置</div>
				<div class="panel-body">
					<div class="tab-content">
						<div class="form-group">
							<label class="col-sm-2 control-label">短信配置说明</label>
							<div class="col-sm-9">
								<div class="alert alert-warning">注: 仅支持阿里云或阿里大于，仅阿里云支持海外短信服务，阿里大于不支持。</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">appkey（AccessKeyId）</label>
							<div class="col-sm-9">
								<input type="text" name="note_appkey" class="form-control" value="{$settings['note_appkey']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">secretKey（AccessKeySecret）</label>
							<div class="col-sm-9">
								<input type="text" name="note_secretKey" class="form-control" value="{$settings['note_secretKey']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">短信签名</label>
							<div class="col-sm-9">
								<input type="text" name="note_sign" class="form-control" value="{$settings['note_sign']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">海外短信服务</label>
							<div class="col-sm-9">
								<input type="checkbox" class="js-switch" name="note_haiwai" {if $settings['note_haiwai'] == 1} checked="checked" {/if}>
							</div>
						</div>
						<div class="form-group note_quhao" {if $settings['note_haiwai'] != 1}style="display: none;"{/if}>
							<label class="col-sm-2 control-label">国际区号</label>
							<div class="col-sm-9">
								<input type="text" name="note_quhao" class="form-control" value="{$settings['note_quhao']}" />
								<span class="help-block">请添加所有需要发送的国家的国际区号，例如我们需要添加中国和韩国则填入：86,82。</span>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
$(".js-switch").change(function() { 
	if($('.js-switch').is(':checked')) {
    	$('.note_quhao').show();
	} else {
		$('.note_quhao').hide();
	}
});
</script>
{php include wl_template('common/footer');}
